Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
commite0517b35bd709613815efc304d2173c19d74a1f1
treec7c4d5c6c770c7576af2674698d56ec75b9279ba
parentb8554b00c12bda5ca77f1b22fe16433161bdecdd
Fix sbrk in PIE binaries

In PIE mode, the program gets loaded at very low address, and thus _end is very
low, just before libraries, and thus initializing the brk to it does not make
sense, since there is no room left there. Hardcode the brk to 0x8000000 for now
as a workaround.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-pie-sbrk.diff
sysdeps/mach/hurd/brk.c